<?php
//首页类		2016/5/4 星期三
class index extends Ajax
{
	//钥匙支持
	public function keyAuth()
	{
		$bind = $this->bind;
		$retVal = $bind['key'] == SITE_KEY? 'Y' : $bind['key'];
		if($retVal == 'Y'){//登入
			//$_SESSION['login_user'] = SITE_KEY;
			w_logined($this);
		}
		elseif('' == $retVal){//退出
			$_SESSION['user'] = '';
			echo 'Y';die;
		}
		echo $retVal;die;// debug  ajxa访问会进行两次
	}
	//*******************************>学习网站
	public function internet()
	{
		$bind = $this->bind;
		$item = isset($_POST['action'])? $_POST['action'] : '';
		$this->feekback($bind);
		print_r($bind);
		die;
	}
	//<*******************************学习网站
}

